net.conn.fd (field)
190 uses
net (current package)
iprawsock.go#L109: return newRawConn(c.fd)
iprawsock.go#L119: err = &OpError{Op: "read", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
iprawsock.go#L131: err = &OpError{Op: "read", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
iprawsock.go#L152: err = &OpError{Op: "read", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
iprawsock.go#L164: err = &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: addr.opAddr(), Err: err}
iprawsock.go#L176: return 0, &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: addr, Err: syscall.EINVAL}
iprawsock.go#L180: err = &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: a.opAddr(), Err: err}
iprawsock.go#L197: err = &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: addr.opAddr(), Err: err}
iprawsock_posix.go#L49: n, sa, err := c.fd.readFrom(b)
iprawsock_posix.go#L77: n, oobn, flags, sa, err = c.fd.readMsg(b, oob, 0)
iprawsock_posix.go#L88: if c.fd.isConnected {
iprawsock_posix.go#L94: sa, err := addr.sockaddr(c.fd.family)
iprawsock_posix.go#L98: return c.fd.writeTo(b, sa)
iprawsock_posix.go#L102: if c.fd.isConnected {
iprawsock_posix.go#L108: sa, err := addr.sockaddr(c.fd.family)
iprawsock_posix.go#L112: return c.fd.writeMsg(b, oob, sa)
net.go#L167: fd *netFD
net.go#L170: func (c *conn) ok() bool { return c != nil && c.fd != nil }
net.go#L179: n, err := c.fd.Read(b)
net.go#L181: err = &OpError{Op: "read", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
net.go#L191: n, err := c.fd.Write(b)
net.go#L193: err = &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
net.go#L203: err := c.fd.Close()
net.go#L205: err = &OpError{Op: "close", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
net.go#L217: return c.fd.laddr
net.go#L227: return c.fd.raddr
net.go#L235: if err := c.fd.SetDeadline(t); err != nil {
net.go#L236: return &OpError{Op: "set", Net: c.fd.net, Source: nil, Addr: c.fd.laddr, Err: err}
net.go#L246: if err := c.fd.SetReadDeadline(t); err != nil {
net.go#L247: return &OpError{Op: "set", Net: c.fd.net, Source: nil, Addr: c.fd.laddr, Err: err}
net.go#L257: if err := c.fd.SetWriteDeadline(t); err != nil {
net.go#L258: return &OpError{Op: "set", Net: c.fd.net, Source: nil, Addr: c.fd.laddr, Err: err}
net.go#L269: if err := setReadBuffer(c.fd, bytes); err != nil {
net.go#L270: return &OpError{Op: "set", Net: c.fd.net, Source: nil, Addr: c.fd.laddr, Err: err}
net.go#L281: if err := setWriteBuffer(c.fd, bytes); err != nil {
net.go#L282: return &OpError{Op: "set", Net: c.fd.net, Source: nil, Addr: c.fd.laddr, Err: err}
net.go#L295: f, err = c.fd.dup()
net.go#L297: err = &OpError{Op: "file", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
splice_linux.go#L29: s = tc.fd
splice_linux.go#L31: if uc.fd.net != "unix" {
splice_linux.go#L34: s = uc.fd
tcpsock.go#L122: return newRawConn(c.fd)
tcpsock.go#L132: err = &OpError{Op: "readfrom", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
tcpsock.go#L143: if err := c.fd.closeRead(); err != nil {
tcpsock.go#L144: return &OpError{Op: "close", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
tcpsock.go#L155: if err := c.fd.closeWrite(); err != nil {
tcpsock.go#L156: return &OpError{Op: "close", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
tcpsock.go#L179: if err := setLinger(c.fd, sec); err != nil {
tcpsock.go#L180: return &OpError{Op: "set", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
tcpsock.go#L191: if err := setKeepAlive(c.fd, keepalive); err != nil {
tcpsock.go#L192: return &OpError{Op: "set", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
tcpsock.go#L202: if err := setKeepAlivePeriod(c.fd, d); err != nil {
tcpsock.go#L203: return &OpError{Op: "set", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
tcpsock.go#L216: if err := setNoDelay(c.fd, noDelay); err != nil {
tcpsock.go#L217: return &OpError{Op: "set", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
tcpsock.go#L235: return isUsingMultipathTCP(c.fd), nil
tcpsock_posix.go#L48: if n, err, handled := splice(c.fd, r); handled {
tcpsock_posix.go#L51: if n, err, handled := sendFile(c.fd, r); handled {
udpsock.go#L132: return newRawConn(c.fd)
udpsock.go#L151: err = &OpError{Op: "read", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
udpsock.go#L177: err = &OpError{Op: "read", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
udpsock.go#L205: err = &OpError{Op: "read", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
udpsock.go#L217: err = &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: addr.opAddr(), Err: err}
udpsock.go#L229: err = &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: addrPortUDPAddr{addr}, Err: err}
udpsock.go#L241: return 0, &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: addr, Err: syscall.EINVAL}
udpsock.go#L245: err = &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: a.opAddr(), Err: err}
udpsock.go#L264: err = &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: addr.opAddr(), Err: err}
udpsock.go#L276: err = &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: addrPortUDPAddr{addr}, Err: err}
udpsock_posix.go#L49: switch c.fd.family {
udpsock_posix.go#L52: n, err = c.fd.readFromInet4(b, &from)
udpsock_posix.go#L59: n, err = c.fd.readFromInet6(b, &from)
udpsock_posix.go#L75: switch c.fd.family {
udpsock_posix.go#L78: n, err = c.fd.readFromInet4(b, &from)
udpsock_posix.go#L85: n, err = c.fd.readFromInet6(b, &from)
udpsock_posix.go#L98: switch c.fd.family {
udpsock_posix.go#L101: n, oobn, flags, err = c.fd.readMsgInet4(b, oob, 0, &sa)
udpsock_posix.go#L106: n, oobn, flags, err = c.fd.readMsgInet6(b, oob, 0, &sa)
udpsock_posix.go#L114: if c.fd.isConnected {
udpsock_posix.go#L121: switch c.fd.family {
udpsock_posix.go#L127: return c.fd.writeToInet4(b, &sa)
udpsock_posix.go#L133: return c.fd.writeToInet6(b, &sa)
udpsock_posix.go#L140: if c.fd.isConnected {
udpsock_posix.go#L147: switch c.fd.family {
udpsock_posix.go#L153: return c.fd.writeToInet4(b, &sa)
udpsock_posix.go#L159: return c.fd.writeToInet6(b, &sa)
udpsock_posix.go#L166: if c.fd.isConnected && addr != nil {
udpsock_posix.go#L169: if !c.fd.isConnected && addr == nil {
udpsock_posix.go#L172: sa, err := addr.sockaddr(c.fd.family)
udpsock_posix.go#L176: return c.fd.writeMsg(b, oob, sa)
udpsock_posix.go#L180: if c.fd.isConnected && addr.IsValid() {
udpsock_posix.go#L183: if !c.fd.isConnected && !addr.IsValid() {
udpsock_posix.go#L187: switch c.fd.family {
udpsock_posix.go#L193: return c.fd.writeMsgInet4(b, oob, &sa)
udpsock_posix.go#L199: return c.fd.writeMsgInet6(b, oob, &sa)
udpsock_posix.go#L261: if err := setIPv4MulticastInterface(c.fd, ifi); err != nil {
udpsock_posix.go#L265: if err := setIPv4MulticastLoopback(c.fd, false); err != nil {
udpsock_posix.go#L268: if err := joinIPv4Group(c.fd, ifi, ip); err != nil {
udpsock_posix.go#L276: if err := setIPv6MulticastInterface(c.fd, ifi); err != nil {
udpsock_posix.go#L280: if err := setIPv6MulticastLoopback(c.fd, false); err != nil {
udpsock_posix.go#L283: if err := joinIPv6Group(c.fd, ifi, ip); err != nil {
unixsock.go#L78: return newRawConn(c.fd)
unixsock.go#L87: if err := c.fd.closeRead(); err != nil {
unixsock.go#L88: return &OpError{Op: "close", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
unixsock.go#L99: if err := c.fd.closeWrite(); err != nil {
unixsock.go#L100: return &OpError{Op: "close", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
unixsock.go#L112: err = &OpError{Op: "read", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
unixsock.go#L124: err = &OpError{Op: "read", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
unixsock.go#L145: err = &OpError{Op: "read", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
unixsock.go#L157: err = &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: addr.opAddr(), Err: err}
unixsock.go#L169: return 0, &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: addr, Err: syscall.EINVAL}
unixsock.go#L173: err = &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: a.opAddr(), Err: err}
unixsock.go#L190: err = &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: addr.opAddr(), Err: err}
unixsock_posix.go#L103: n, sa, err := c.fd.readFrom(b)
unixsock_posix.go#L107: addr = &UnixAddr{Name: sa.Name, Net: sotypeToNet(c.fd.sotype)}
unixsock_posix.go#L115: n, oobn, flags, sa, err = c.fd.readMsg(b, oob, readMsgFlags)
unixsock_posix.go#L123: addr = &UnixAddr{Name: sa.Name, Net: sotypeToNet(c.fd.sotype)}
unixsock_posix.go#L130: if c.fd.isConnected {
unixsock_posix.go#L136: if addr.Net != sotypeToNet(c.fd.sotype) {
unixsock_posix.go#L140: return c.fd.writeTo(b, sa)
unixsock_posix.go#L144: if c.fd.sotype == syscall.SOCK_DGRAM && c.fd.isConnected {
unixsock_posix.go#L149: if addr.Net != sotypeToNet(c.fd.sotype) {
unixsock_posix.go#L154: return c.fd.writeMsg(b, oob, sa)
writev_unix.go#L18: n, err := c.fd.writeBuffers(v)
writev_unix.go#L20: return n, &OpError{Op: "writev", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |